﻿// Decompiled with JetBrains decompiler
// Type: Microsoft.InfoCards.ManageRequest
// Assembly: infocard, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// MVID: 8E14765A-6610-409A-BA36-099A0642905D
// Assembly location: E:\git\ALLIDA\windll\infocard.exe

using Microsoft.InfoCards.Diagnostics;
using System;
using System.Diagnostics;
using System.IO;
using System.Security.Principal;

namespace Microsoft.InfoCards
{
  internal class ManageRequest : ClientUIRequest
  {
    public ManageRequest(
      Process callingProcess,
      WindowsIdentity callingIdentity,
      InfoCardUIAgent uiAgent,
      IntPtr rpcHandle,
      Stream inArgs,
      Stream outArgs)
      : base(callingProcess, callingIdentity, uiAgent, rpcHandle, inArgs, outArgs, InfoCardUIAgent.CallMode.Manage, ExceptionList.AllNonFatal)
    {
      if (0L != inArgs.Length)
        throw InfoCardTrace.ThrowHelperError((Exception) new CommunicationException(SR.GetString("ServiceRequestBufferLengthInvalid")));
    }

    protected override void OnMarshalInArgs()
    {
    }

    protected override void OnProcess()
    {
      try
      {
        this.StartAndWaitForUIAgent();
      }
      catch (UserCancelledException ex)
      {
      }
    }

    protected override void OnMarshalOutArgs()
    {
    }
  }
}
